export const pointList = [
    {
        name: "选项",
        id: "option",
        val: "option",
    },
    {
        name: "MAP",
        id: "MAP",
        val: "MAP",
    },
]
export const outputTypeOption = [
    { id: 'elasticsearch', name: "elasticsearch" },
    { id: 'email', name: "email" },
    { id: 'file', name: "file" },
    { id: 'google-cloud-storage', name: "google-cloud-storage" },
    { id: 'googlepubsub', name: "googlepubsub" },
    { id: 'grpc', name: "grpc" },
    { id: 'grpc-call', name: "grpc-call" },
    { id: 'grpc-service-response', name: "grpc-service-response" },
    { id: 'hl7', name: "hl7" },
    { id: 'http', name: "http" },
    { id: 'http-call', name: "http-call" },
    { id: 'http-request', name: "http-request" },
    { id: 'http-response', name: "http-response" },
    { id: 'http-service-response', name: "http-service-response" },
    { id: 'inMemory', name: "inMemory" },
    { id: 'jms', name: "jms" },
    { id: 'kafka', name: "kafka" },
    { id: 'kafkaMultiDC', name: "kafkaMultiDC" },
    { id: 'log', name: "log" },
    { id: 'mqtt', name: "mqtt" },
    { id: 'nats', name: "nats" },
    { id: 'prometheus', name: "prometheus" },
    { id: 'rabbitmq', name: "rabbitmq" },
    { id: 's3', name: "s3" },
    { id: 'snmp', name: "snmp" },
    { id: 'sqs', name: "sqs" },
    { id: 'tcp', name: "tcp" },
    { id: 'websocket', name: "websocket" },
    { id: 'websocket-server', name: "websocket-server" }
]

export const mapTypeOption = [
    { id: 1, name: 'avro' },
    { id: 2, name: 'binary' },
    { id: 3, name: 'csv' },
    { id: 4, name: 'json' },
    { id: 5, name: 'keyvalue' },
    { id: 6, name: 'passThrough (default)' },
    { id: 7, name: 'text' },
    { id: 8, name: 'xml' },
]
export const keyValueOption = [
    {
        id: 'ATTRIBUTES',
        name: 'Enter payload as keyvalue pairs',
    },
    {
        id: 'PAYLOAD',
        name: 'Enter a single payload attribute',
    }
]
export const mapList = [
    {
        name: 'avro',
        parameters: [
            {
                defaultValue: '',
                name: 'schema.def',
                optional: false,
                isCheck: true
            },
            {
                defaultValue: '',
                name: 'schema.registry',
                optional: false,
                isCheck: true
            },
            {
                defaultValue: '',
                name: 'schema.id',
                optional: false,
                isCheck: true
            },
            {
                defaultValue: '',
                name: 'fail.on.missing.attribute',
                optional: true,
                isCheck: false
            },
        ]
    },
    {
        name: 'binary',
        parameters: []
    },
    {
        name: 'csv',
        parameters: [
            {
                defaultValue: '',
                name: 'delimiter',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'header.present',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'fail.on.unknown.attribute',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'event.grouping.enabled',
                optional: true,
                isCheck: false
            },
        ]
    },
    {
        name: 'json',
        parameters: [
            {
                defaultValue: '',
                name: 'enclosing.element',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'fail.on.missing.attribute',
                optional: true,
                isCheck: false
            },
        ]
    },
    {
        name: 'keyvalue',
        parameters: [
            {
                defaultValue: '',
                name: 'fail.on.missing.attribute',
                optional: true,
                isCheck: false
            },
        ]
    },
    {
        name: 'passThrough (default)',
        parameters: [

        ]
    },
    {
        name: 'text',
        parameters: [
            {
                defaultValue: '',
                name: 'regex.groupid',
                optional: false,
                isCheck: true
            },
            {
                defaultValue: '',
                name: 'fail.on.missing.attribute',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'event.grouping.enabled',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'delimiter',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'new.line.character',
                optional: true,
                isCheck: false
            },
        ]
    },
    {
        name: 'xml',
        parameters: [
            {
                defaultValue: '',
                name: 'namespaces',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'enclosing.element',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'enclosing.element.as.event',
                optional: true,
                isCheck: false
            },
            {
                defaultValue: '',
                name: 'fail.on.missing.attribute',
                optional: true,
                isCheck: false
            },
        ]
    },
]